; ModuleID = 'kula85_test2.c'
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32"
target triple = "i386-pc-linux-gnu"

define i32 @foo() nounwind {
entry:
  %retval = alloca i32
  %0 = alloca i32
  %a = alloca i32
  %x1 = alloca i32
  %x = alloca i32*
  %y1 = alloca i32
  %y = alloca i32*
  %p = alloca i32*
  %"alloca point" = bitcast i32 0 to i32
  store i32 10, i32* %a, align 4
  store i32 0, i32* %x1, align 4
  store i32* %x1, i32** %x, align 4
  store i32 0, i32* %y1, align 4
  store i32* %y1, i32** %y, align 4
  %1 = load i32* %a, align 4
  %2 = icmp sgt i32 %1, 101
  br i1 %2, label %bb, label %bb1

bb:                                               ; preds = %entry
  %3 = load i32** %x, align 4
  store i32 5, i32* %3, align 4
  %4 = load i32** %x, align 4
  store i32* %4, i32** %p, align 4
  br label %bb2

bb1:                                              ; preds = %entry
  %5 = load i32** %y, align 4
  store i32 9, i32* %5, align 4
  %6 = load i32** %y, align 4
  store i32* %6, i32** %p, align 4
  br label %bb2

bb2:                                              ; preds = %bb1, %bb
  %7 = load i32** %p, align 4
  %8 = load i32* %7, align 4
  store i32 %8, i32* %0, align 4
  %9 = load i32* %0, align 4
  store i32 %9, i32* %retval, align 4
  br label %return

return:                                           ; preds = %bb2
  %retval3 = load i32* %retval
  ret i32 %retval3
}
